package club.caihappy.store.service;

import club.caihappy.store.entity.Address;

import java.util.Date;
import java.util.List;

/**
 * 收货地址模块业务层接口
 * Created by DELL on 2022/3/14
 **/
public interface IAddressService {

    public void addNewAddress(Integer uid, String username, Address address);

    public List<Address> getByUid(Integer uid);

    /**
     * 修改某个用户的收货地址数据为默认收货地址
     *
     * @param aid
     * @param uid
     * @param modifiedUser
     */
    public void setDefault(Integer aid, Integer uid, String modifiedUser);

    /**
     * 删除用户选中的收货地址数据
     */
    public void deleteAddress(Integer aid, Integer uid, String username);

    public Address getByAid(Integer aid,Integer uid);

}
